package com.zysc.processflow.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zysc.processflow.entity.Organization;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zysc.processflow.entity.Person;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 组织机构表 服务类
 * </p>
 *
 * @author 正元智慧城市_
 * @since 2022-11-18
 */
public interface IOrganizationService extends IService<Organization> {

    List<Organization> GetOrganizationListByPage(IPage<Organization> page, String name, String qyflag, String district, String type, String fathername);

    List<Person> GetAllUserinfoByOrgid(String id);

    List<String> getOwnerArray(String orgid,String currentorgid);

    Boolean saveOrUpdateOrgnInfo(Organization entity);

    List<Organization> getAllOrgFlowedByorgId(String currentorgid,String currentorgtype);

    Boolean updateFatherNameAndPath();

    Organization getOrgByTyshxydm(String tyshxydm);

    List<Organization> getChildrenOrg(String orgid);

    Organization getOrgByOrgIdOrTyshxydm(String orgid);

    List<Map> GetSonNodeById(String orgid);

    List<Organization> getOrgDataListByKeyword(IPage<Organization> page, List<String> queryColomnList, String keyword, Boolean precise);

    List<Organization> getTestData();

    Organization getOrganizationFromAll(String tyshxydm);

    Organization setIsDelByTyshxydm(String enterprisecode);
}
